/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.gft.bancosimulador.controller;

import com.gft.bancosimulador.beans.Cliente;
import com.gft.bancosimulador.business.ClienteBusiness;
import com.gft.bancosimulador.outros.Sucesso;
import com.gft.bancosimulador.views.ClienteView;

/**
 *
 * @author AEPI
 */
public class CancelarClienteController extends ClienteView {
    private Cliente clienteTeste;
            
    public CancelarClienteController(){
        
    }
    public CancelarClienteController(int codigo){
        this.consultar(codigo);
    }
       

    @Override
    public void salvar() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void cancelar() {
        
        Sucesso s = ClienteBusiness.getInstance().cancelarCliente(clienteTeste.getCodigo());
        this.mostrarStatus(s);
    }
    
    @Override
    protected String getTitulo() {
        return "Cancelar Cliente";
    }

    @Override
    protected String getRotuloIdentificador() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    protected String getFormatoMascaraIdentificador() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void reativar() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void exibirCliente(Cliente c) {
        super.exibirCliente(c);
        clienteTeste = c;
    }

    @Override
    public void bloquear() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
